<template>
	<view class="max-box">
		<!-- 登录页 -->
		<view class="my-login-box" v-if="!vuex_token">
			<u-icon name="account-fill" color="#dcdcdc" size="200"></u-icon>
			<button class="loign-btn" type="primary" @click="login">一键登录</button>
			<text class="text">登录后尽享更多权益</text>
		</view>
		<!-- 登录后显示的个人中心数据 -->
		<view class="content-box" v-else>个人中心</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	onLoad() {},
	methods: {
		login() {
			this.$u.toast('点啥点，你接口对接了吗');
		}
	}
};
</script>

<style lang="scss" scoped>
.max-box {
	width: 750rpx;
	min-height: 100vh;
	background-color: $bgc;
	.my-login-box {
		position: relative;
		height: 750rpx;
		background-color: #fff;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		overflow: hidden;

		// 通过伪元素实现底部的“半圆”效果
		&::after {
			content: ' ';
			display: block;
			width: 100%;
			height: 40px;
			background-color: $bgc;
			position: absolute;
			bottom: 0;
			left: 0;
			border-radius: 100%;
			transform: translateY(50%);
		}

		.loign-btn {
			width: 90%;
			margin: 15rpx 0rpx;
			background-color: $color;
			border-radius: 200rpx;
		}
		.text {
			font-size: 24rpx;
			color: gray;
		}
	}
}

.content-box {
	width: 100%;
	height: 100%;
}
</style>
